<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: min_max.lfnc.php 296 2009-08-02 04:32:09Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/variable/min_max.lfnc.php $
*/


function min_max($min, $var, $max) {
	return max($min, min($var, $max));
}


?>